public class Practice01 {
    public static void main(String[] args) {
        int[] array01 = new int[]{8, 2, 1, 0, 3};
        int[] array02 = new int[]{2, 0, 3, 2, 4, 0, 1, 3, 2, 3, 3};
        for (int i = 0; i < array02.length; i++) {
            System.out.print(array01[array02[i]]);
        }
        System.out.println();
        int[] array03 = new int[]{1, 5, 3, 4, 6, 7, 9, 2, 8, 0};
        int[] array04 = new int[]{0, 8, 1, 1, 6, 7, 5, 4, 7, 8, 2};
        for (int j = 0; j < array04.length; j++) {
            System.out.print(array03[array04[j]]);
        }
    }
}
